package com.fh.shop.controller;/**
 * 描述:
 * Author:袁亚强
 * Date:2021/12/1610:28
 */

import com.fh.common.baseData.TongyiData;
import com.fh.shop.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * created by macro on 2021/12/16,
 */
@RestController
@RequestMapping("common")
public class CommonController {
    @Autowired
    private CommonService commonService;

    @GetMapping("getBrandData")
    public TongyiData getBrandData() {
        return TongyiData.succeess(commonService.BrandData());
    }

}
